<template>
  <div>
    <slot :params="params"></slot>
    <input type="button" @click="submit" value="提交">
  </div>
</template>

<script>
export default {
  name: "index",
  data () {
    return {
      params: {}
    }
  },
  methods: {
    submit () {
      console.log(this.$slots.default);
      this.$emit('submit', this.params)
    }
  }
}
</script>


